package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysAppointment;
import org.apache.ibatis.annotations.Param;

/**
 * 预约信息Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-09
 */
public interface SysAppointmentMapper 
{
    /**
     * 查询预约信息
     * 
     * @param appointmentId 预约信息主键
     * @return 预约信息
     */
    public SysAppointment selectSysAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询预约信息列表
     * 
     * @param sysAppointment 预约信息
     * @return 预约信息集合
     */
    public List<SysAppointment> selectSysAppointmentList(SysAppointment sysAppointment);

    /**
     * 新增预约信息
     * 
     * @param sysAppointment 预约信息
     * @return 结果
     */
    public int insertSysAppointment(SysAppointment sysAppointment);

    /**
     * 修改预约信息
     * 
     * @param sysAppointment 预约信息
     * @return 结果
     */
    public int updateSysAppointment(SysAppointment sysAppointment);

    /**
     * 删除预约信息
     * 
     * @param appointmentId 预约信息主键
     * @return 结果
     */
    public int deleteSysAppointmentByAppointmentId(Long appointmentId);

    /**
     * 批量删除预约信息
     * 
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAppointmentByAppointmentIds(Long[] appointmentIds);

    /**
     * 更新预约状态
     *
     * @param appointmentId 预约ID
     * @param status        新状态
     * @return 结果
     */
    public int updateAppointmentStatus(@Param("appointmentId") Long appointmentId, @Param("status") String status);
}
